package com.xiaobai.data.manager.system.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xiaobai.data.manager.system.DeptManager;
import com.xiaobai.data.mapper.system.DeptMapper;
import com.xiaobai.model.entity.system.Dept;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
@AllArgsConstructor
public class DeptManagerImpl extends ServiceImpl<DeptMapper, Dept>
    implements DeptManager {
    private final DeptMapper deptMapper;
    @Override
    public List<Dept> listTreeDept(Long parentId) {
        return deptMapper.listTreeDept(parentId);
    }
}
